import service from "@/request/request.js"

// 获取主页栏宠物的信息列表
export const GetHomePagePetMessageService = (pageNum, pageSize,keyword) => {
    return service({
        method: 'GET',
        url: '/netshop/homemessage/',
        params: {
            keyword:keyword,
            currentPage: pageNum,
            pageSize: pageSize
        }
    })
}
// 获取主页栏粮食商品的信息列表
export const GetHomePageShopMessageService = (pageNum, pageSize,keyword) => {
    return service({
        method: 'GET',
        url: '/netshop/shopmessage/',
        params: {
            keyword:keyword,
            currentPage: pageNum,
            pageSize: pageSize
        }
    })
}
// 获取宠物详情页
export const GetDetailMessage =(id)=>{
    return service({
        method:'GET',
        url:'/netshop/detailmessage/'+id+'/',
    })
}
// 获取商品详情页
export const GetGoodsDetailMessage =(id)=>{
    return service({
        method:'GET',
        url:'/netshop/detailgoodsmessage/'+id+'/',
    })
}